<template>
	<view @click="returnHandle(deltaNmuber)" class="return" :style="{paddingTop:capsuleTop+'px',height:capsuleHeight+'px'}">
		<i class="iconfont icon-fanhuitubiao" :style="{color:type === 0 ? 'white' : '#666666'}"></i>
		<text :style="{color:type === 0 ? 'white' : '#666666'}">{{text}}</text>
	</view>
</template>

<script>
	import { capsuleTopHeight } from "../../mixins/mixins.js"
	export default {
		mixins:[capsuleTopHeight],
		name:"return-text",
		// 需要传递的参数为返回的文本内容还有类型
		props:{
			text:{
				type:String,
				default:""
			},
			type:{
				type:Number,
				default:1
			},
			deltaNmuber:{
				type:Number,
				default:1
			}
		}
	}
</script>

<style lang="scss" scoped>
.return{
	width: 200upx;
	display: flex;
	margin-left: 40upx;
	align-items: center;
	.van-icon{
		font-weight: bold;
	}
	text{
		padding-left: 20upx;
		font-size: 36upx;
	}
}
</style>
